<head>
<style type="text/css">
.style1 {text-align: left;}
.style2 {border-style: solid;
         border-width: 2px;
         text-align: center;
         color: rgb(30,140,250);}
</style>
</head>

<!-- <h1 class="style1" Border="1">Rut    <h1> -->
<table class="style2" Border="1">

</table>

<?php foreach ($Detallealumnos as $detallealumno): ?>
<table class="style2" Border="1">
<tr>
<TH>Rut</TH>
<TH>Codigo</TH>
<TH>N1</TH>
<TH>N2</TH>
<TH>N3</TH>
<TH>Pr</TH>
</tr>
<tr>
<TH><?php echo $detallealumno['Detallealumno']['Rut']; ?></TH>
<TH><?php echo $detallealumno['Detallealumno']['CodAsig']; ?></TH>
<TH><?php echo $detallealumno['Detallealumno']['n1']; ?></TH>
<TH><?php echo $detallealumno['Detallealumno']['n2']; ?></TH>
<TH><?php echo $detallealumno['Detallealumno']['n3']; ?></TH>
<TH><?php echo $detallealumno['Detallealumno']['promedio']; ?></TH>
</tr>
</table>
<?php endforeach; ?> 
